package com.zyz.service.impl;

import com.zyz.dao.EquipmentDao;
import com.zyz.domain.Equipment;
import com.zyz.service.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EquipmentServiceImpl implements EquipmentService {
    @Autowired
    private EquipmentDao equipmentDao;
    @Override
    public Integer getEqTotal() {
        List<Equipment> equipmentList = equipmentDao.selectList(null);
        int i=0;
        for (Equipment equipment : equipmentList) {
            i++;
        }
        return i;
    }
}
